<?php 
	if (strlen($this->session->userdata('Error')) > 0)
	{
		echo '<div class="alert alert-danger alert-dismissable">';
		echo '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>'.$this->session->userdata('Error').'</div>';
		$this->session->unset_userdata('Error');
	} 
	elseif (strlen($this->session->userdata('Success')) > 0)
	{
		echo '<div class="alert alert-success alert-dismissable">';
		echo '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>'.$this->session->userdata('Success').'</div>';
		$this->session->unset_userdata('Success');
	}	
?>